package org.tang.hool.bean;

/**
 * 保存Bean相关的配置信息
 *
 * @author Tang Jiujia
 * @since 2022/5/5
 */
public class BeanDefinition {

    /**
     * bean的全类名
     */
    private String beanClassName;

    /**
     * 是否支持延迟加载
     */
    private boolean lazyInit = false;

    /**
     * bean的名称，可用于获取beanFactory中缓存的实例
     */
    private String factoryBeanName;

    public String getBeanClassName() {
        return beanClassName;
    }

    public void setBeanClassName(String beanClassName) {
        this.beanClassName = beanClassName;
    }

    public boolean isLazyInit() {
        return lazyInit;
    }

    public void setLazyInit(boolean lazyInit) {
        this.lazyInit = lazyInit;
    }

    public String getFactoryBeanName() {
        return factoryBeanName;
    }

    public void setFactoryBeanName(String factoryBeanName) {
        this.factoryBeanName = factoryBeanName;
    }
}
